package cn.codeinn.service1.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class MemberDTO implements Serializable, Comparable<MemberDTO> {

    private static final long serialVersionUID = 938535296746393089L;

    private Integer id;

    private String name;

    private Integer level;

    private Integer targetNum;
    
    @Override
    public int compareTo(MemberDTO o) {
        return o.getLevel().compareTo(this.level);
    }
}
